home *** CD-ROM | disk | FTP | other *** search
/ Maximum CD 2000 November / Maximum CD 2000 Nov.iso / AofE-Conquerers / age2xtrial.exe / CABFILE / MSGAME.CAB / Data / gamedata_x1.drs / Unnamed File 000021.bina < prev    next >
Text File  |  2000-07-18  |  10KB  |  398 lines

  1. ;DARK AGE
  2. (defrule
  3.     (current-age == dark-age)
  4.     (civilian-population < 9)
  5. =>
  6.     (set-strategic-number sn-wood-gatherer-percentage 0)
  7.     (set-strategic-number sn-food-gatherer-percentage 100)
  8.     (set-strategic-number sn-gold-gatherer-percentage 0)
  9.     (set-strategic-number sn-stone-gatherer-percentage 0)
  10.     (disable-self)
  11. )
  12.  
  13. (defrule
  14.     (current-age == dark-age)
  15.     (civilian-population >= 9)
  16. =>
  17.     (set-strategic-number sn-wood-gatherer-percentage 30)
  18.     (set-strategic-number sn-food-gatherer-percentage 70)
  19.     (set-strategic-number sn-gold-gatherer-percentage 0)
  20.     (set-strategic-number sn-stone-gatherer-percentage 0)
  21.     (disable-self)
  22. )
  23.  
  24. ;***********************************************
  25. ;***********************************************
  26. ;FEUDAL AGE
  27. (defrule
  28.     (current-age == feudal-age)
  29. =>
  30.     (set-goal resource-needed NO)
  31. )
  32.  
  33. (defrule
  34.     (current-age == feudal-age)
  35.     (building-type-count mining-camp == 0)
  36. =>
  37.     (set-strategic-number sn-wood-gatherer-percentage 30)
  38.     (set-strategic-number sn-food-gatherer-percentage 70)
  39.     (set-strategic-number sn-gold-gatherer-percentage 0)
  40.     (set-strategic-number sn-stone-gatherer-percentage 0)
  41. )
  42.  
  43. (defrule
  44.     (current-age == feudal-age)
  45.     (building-type-count mining-camp == 1)
  46.     (nor
  47.         (goal age-advancement NOTICE)
  48.         (goal personality 1)
  49.     )
  50. =>
  51.     (set-strategic-number sn-wood-gatherer-percentage 45)
  52.     (set-strategic-number sn-food-gatherer-percentage 40)
  53.     (set-strategic-number sn-gold-gatherer-percentage 15)
  54.     (set-strategic-number sn-stone-gatherer-percentage 0)
  55. )
  56.  
  57. (defrule
  58.     (current-age == feudal-age)
  59.     (building-type-count mining-camp == 1)
  60.     (or
  61.         (goal age-advancement NOTICE)
  62.         (goal personality 1)
  63.     )
  64. =>
  65.     (set-strategic-number sn-wood-gatherer-percentage 25)
  66.     (set-strategic-number sn-food-gatherer-percentage 55)
  67.     (set-strategic-number sn-gold-gatherer-percentage 20)
  68.     (set-strategic-number sn-stone-gatherer-percentage 0)
  69. )
  70.  
  71. (defrule
  72.     (current-age == feudal-age)
  73.     (building-type-count mining-camp > 1)
  74. =>
  75.     (set-strategic-number sn-wood-gatherer-percentage 35)
  76.     (set-strategic-number sn-food-gatherer-percentage 40)
  77.     (set-strategic-number sn-gold-gatherer-percentage 15)
  78.     (set-strategic-number sn-stone-gatherer-percentage 10)
  79. )
  80.  
  81. ;***********************************************
  82. ;***********************************************
  83. ;CASTLE AGE
  84.  
  85. (defrule
  86.     (current-age == castle-age)
  87.     (building-type-count mining-camp == 0)
  88. =>
  89.     (set-strategic-number sn-wood-gatherer-percentage 30)
  90.     (set-strategic-number sn-food-gatherer-percentage 70)
  91.     (set-strategic-number sn-gold-gatherer-percentage 0)
  92.     (set-strategic-number sn-stone-gatherer-percentage 0)
  93. )
  94.  
  95. (defrule
  96.     (current-age == castle-age)
  97.     (building-type-count mining-camp == 1)
  98. =>
  99.     (set-strategic-number sn-wood-gatherer-percentage 25)
  100.     (set-strategic-number sn-food-gatherer-percentage 55)
  101.     (set-strategic-number sn-gold-gatherer-percentage 20)
  102.     (set-strategic-number sn-stone-gatherer-percentage 0)
  103. )
  104.  
  105. (defrule
  106.     (current-age == castle-age)
  107.     (building-type-count mining-camp > 1)
  108.     (difficulty <= moderate)
  109.     (or
  110.         (building-type-count-total town-center < 2)
  111.         (and
  112.             (goal castle-attempt 1)
  113.             (building-type-count-total castle == 0)
  114.         )
  115.     )
  116. =>
  117.     (set-strategic-number sn-wood-gatherer-percentage 35)
  118.     (set-strategic-number sn-food-gatherer-percentage 35)
  119.     (set-strategic-number sn-gold-gatherer-percentage 15)
  120.     (set-strategic-number sn-stone-gatherer-percentage 15)
  121. )
  122.  
  123. (defrule
  124.     (current-age == castle-age)
  125.     (building-type-count mining-camp > 1)
  126.     (difficulty <= moderate)
  127.     (or
  128.         (building-type-count-total town-center > 1)
  129.         (or
  130.             (goal castle-attempt 0)
  131.             (building-type-count-total castle > 0)
  132.         )
  133.     )
  134. =>
  135.     (set-strategic-number sn-wood-gatherer-percentage 30)
  136.     (set-strategic-number sn-food-gatherer-percentage 35)
  137.     (set-strategic-number sn-gold-gatherer-percentage 25)
  138.     (set-strategic-number sn-stone-gatherer-percentage 10)
  139. )
  140.  
  141. (defrule
  142.     (current-age == castle-age)
  143.     (difficulty > moderate)
  144.     (building-type-count mining-camp > 1)
  145. =>
  146.     (set-strategic-number sn-wood-gatherer-percentage 30)
  147.     (set-strategic-number sn-food-gatherer-percentage 35)
  148.     (set-strategic-number sn-gold-gatherer-percentage 25)
  149.     (set-strategic-number sn-stone-gatherer-percentage 10)
  150. )
  151. ;***********************************************
  152. ;***********************************************
  153. ;IMPERIAL AGE
  154. (defrule
  155.     (current-age == imperial-age)
  156. =>
  157.     (set-goal resource-needed NO)
  158. )
  159.  
  160. (defrule
  161.     (goal resource-supp FOOD-ONLY)
  162.     (current-age == imperial-age)
  163.     (food-amount < 250)
  164. =>
  165.     (set-goal resource-needed FOOD)
  166. )
  167.  
  168. (defrule
  169.     (goal resource-supp GOLD-ONLY)
  170.     (current-age == imperial-age)
  171.     (gold-amount < 475)
  172. =>
  173.     (set-goal resource-needed GOLD)
  174. )
  175.  
  176. (defrule
  177.     (goal resource-supp WOOD-FOOD)
  178.     (goal upgrade-conflict 33)
  179.     (current-age == imperial-age) 
  180.     (wood-amount < 1100)
  181.     (food-amount > 1000)
  182. =>
  183.     (set-goal resource-needed WOOD)
  184. )
  185.  
  186. (defrule
  187.     (goal resource-supp WOOD-FOOD)
  188.     (goal upgrade-conflict 33)
  189.     (current-age == imperial-age) 
  190.     (wood-amount > 1100)
  191.     (food-amount < 1000)
  192. =>
  193.     (set-goal resource-needed FOOD)
  194. )
  195.  
  196. (defrule
  197.     (goal resource-supp WOOD-FOOD)
  198.     (current-age == imperial-age) 
  199.     (wood-amount < 600)
  200.     (food-amount > 500)
  201.     (not (goal upgrade-conflict 33) )
  202. =>
  203.     (set-goal resource-needed WOOD)
  204. )
  205.  
  206. (defrule
  207.     (goal resource-supp WOOD-FOOD)
  208.     (current-age == imperial-age) 
  209.     (wood-amount > 600)
  210.     (food-amount < 500)
  211.     (not (goal upgrade-conflict 33) )
  212. =>
  213.     (set-goal resource-needed FOOD)
  214. )
  215.  
  216. (defrule
  217.     (goal resource-supp WOOD-GOLD)
  218.     (current-age == imperial-age) 
  219.     (wood-amount > 525)
  220.     (gold-amount < 500)
  221. =>
  222.     (set-goal resource-needed GOLD)
  223. )
  224.  
  225. (defrule
  226.     (goal resource-supp WOOD-GOLD)
  227.     (current-age == imperial-age) 
  228.     (wood-amount < 525)
  229.     (gold-amount > 500)
  230. =>
  231.     (set-goal resource-needed WOOD)
  232. )
  233.  
  234. (defrule
  235.     (goal resource-supp WOOD-STONE)
  236.     (current-age == imperial-age) 
  237.     (wood-amount > 400)
  238.     (stone-amount < 400)
  239. =>
  240.     (set-goal resource-needed STONE)
  241. )
  242.  
  243. (defrule
  244.     (goal resource-supp WOOD-STONE)
  245.     (current-age == imperial-age) 
  246.     (wood-amount < 400)
  247.     (stone-amount > 400)
  248. =>
  249.     (set-goal resource-needed WOOD)
  250. )
  251.  
  252. (defrule
  253.     (goal resource-supp FOOD-GOLD)
  254.     (current-age == imperial-age) 
  255.     (food-amount > 1600)
  256.     (gold-amount < 1200)
  257. =>
  258.     (set-goal resource-needed GOLD)
  259. )
  260.  
  261. (defrule
  262.     (goal resource-supp FOOD-GOLD)
  263.     (current-age == imperial-age) 
  264.     (food-amount < 1600)
  265.     (gold-amount > 1200)
  266. =>
  267.     (set-goal resource-needed FOOD)
  268. )
  269.  
  270. (defrule
  271.     (goal resource-supp FOOD-STONE)
  272.     (current-age == imperial-age) 
  273.     (food-amount > 500)
  274.     (stone-amount < 350)
  275. =>
  276.     (set-goal resource-needed STONE)
  277. )
  278.  
  279. (defrule
  280.     (goal resource-supp FOOD-STONE)
  281.     (current-age == imperial-age) 
  282.     (food-amount < 500)
  283.     (stone-amount > 350)
  284. =>
  285.     (set-goal resource-needed FOOD)
  286. )
  287.  
  288. (defrule
  289.     (goal castle-attempt YES)
  290.     (current-age == imperial-age)
  291.     (stone-amount < 650)
  292. =>
  293.     (set-goal resource-needed STONE)
  294. )
  295.  
  296. (defrule
  297.     (goal sea-owner YES)
  298.     (current-age == imperial-age)
  299.     (warboat-count < twenty-percent-pop)
  300.     (wood-amount < 200)
  301.     (gold-amount > 150)
  302. =>
  303.     (set-goal resource-needed WOOD)
  304. )
  305.  
  306. (defrule
  307.     (goal sea-owner YES)
  308.     (current-age == imperial-age)
  309.     (warboat-count < twenty-percent-pop)
  310.     (wood-amount > 200)
  311.     (gold-amount < 150)
  312. =>
  313.     (set-goal resource-needed GOLD)
  314. )
  315.  
  316. ;***********************************************
  317. ;WONDERING
  318. (defrule
  319.     (goal wonder-attempt POSSIBLE)
  320.     (wood-amount < 1000)
  321.     (gold-amount > 1000)
  322.     (stone-amount > 1000)
  323. =>
  324.     (set-goal resource-needed WOOD)
  325. )
  326.  
  327. (defrule
  328.     (goal wonder-attempt POSSIBLE)
  329.     (wood-amount > 1000)
  330.     (gold-amount < 1000)
  331.     (stone-amount > 1000)
  332. =>
  333.     (set-goal resource-needed GOLD)
  334. )
  335.  
  336. (defrule
  337.     (goal wonder-attempt POSSIBLE)
  338.     (wood-amount > 1000)
  339.     (gold-amount > 1000)
  340.     (stone-amount < 1000)
  341. =>
  342.     (set-goal resource-needed STONE)
  343. )
  344. ;***********************************************
  345. ;***********************************************
  346. (defrule
  347.     (goal resource-needed NO)
  348.     (current-age == imperial-age)
  349. =>
  350.     (set-strategic-number sn-wood-gatherer-percentage 40)
  351.     (set-strategic-number sn-food-gatherer-percentage 40)
  352.     (set-strategic-number sn-gold-gatherer-percentage 15)
  353.     (set-strategic-number sn-stone-gatherer-percentage 5)
  354. )
  355.  
  356. ;extra wood
  357. (defrule
  358.     (goal resource-needed WOOD)
  359.     (current-age == imperial-age)
  360. =>
  361.     (set-strategic-number sn-wood-gatherer-percentage 50)
  362.     (set-strategic-number sn-food-gatherer-percentage 30)
  363.     (set-strategic-number sn-gold-gatherer-percentage 15)
  364.     (set-strategic-number sn-stone-gatherer-percentage 5)
  365. )
  366.  
  367. ;extra food
  368. (defrule
  369.     (goal resource-needed FOOD)
  370.     (current-age == imperial-age)
  371. =>
  372.     (set-strategic-number sn-wood-gatherer-percentage 30)
  373.     (set-strategic-number sn-food-gatherer-percentage 50)
  374.     (set-strategic-number sn-gold-gatherer-percentage 15)
  375.     (set-strategic-number sn-stone-gatherer-percentage 5)
  376. )
  377.  
  378. ;extra gold
  379. (defrule
  380.     (goal resource-needed GOLD)
  381.     (current-age == imperial-age)
  382. =>
  383.     (set-strategic-number sn-wood-gatherer-percentage 35)
  384.     (set-strategic-number sn-food-gatherer-percentage 35)
  385.     (set-strategic-number sn-gold-gatherer-percentage 25)
  386.     (set-strategic-number sn-stone-gatherer-percentage 5)
  387. )
  388.  
  389. ;extra stone
  390. (defrule
  391.     (goal resource-needed STONE)
  392.     (current-age == imperial-age)
  393. =>
  394.     (set-strategic-number sn-wood-gatherer-percentage 35)
  395.     (set-strategic-number sn-food-gatherer-percentage 35)
  396.     (set-strategic-number sn-gold-gatherer-percentage 15)
  397.     (set-strategic-number sn-stone-gatherer-percentage 15)
  398. )